<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Apm\V20210622\Models;
use TencentCloud\Common\AbstractModel;

/**
 * DescribeApmServiceMetric response structure.
 *
 * @method array getServiceMetricList() Obtain List of application metrics.
 * @method void setServiceMetricList(array $ServiceMetricList) Set List of application metrics.
 * @method integer getTotalCount() Obtain Number of applications meeting the filtering conditions.
 * @method void setTotalCount(integer $TotalCount) Set Number of applications meeting the filtering conditions.
 * @method integer getWarningErrorCount() Obtain Warning of the abnormal number of applications.
 * @method void setWarningErrorCount(integer $WarningErrorCount) Set Warning of the abnormal number of applications.
 * @method integer getApplicationCount() Obtain Total number of applications.
 * @method void setApplicationCount(integer $ApplicationCount) Set Total number of applications.
 * @method integer getPage() Obtain Page number.
 * @method void setPage(integer $Page) Set Page number.
 * @method integer getPageSize() Obtain Page size.
 * @method void setPageSize(integer $PageSize) Set Page size.
 * @method integer getErrorCount() Obtain Indicates the number of abnormal applications.
 * @method void setErrorCount(integer $ErrorCount) Set Indicates the number of abnormal applications.
 * @method integer getWarningCount() Obtain Warning of the number of applications.
 * @method void setWarningCount(integer $WarningCount) Set Warning of the number of applications.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class DescribeApmServiceMetricResponse extends AbstractModel
{
    /**
     * @var array List of application metrics.
     */
    public $ServiceMetricList;

    /**
     * @var integer Number of applications meeting the filtering conditions.
     */
    public $TotalCount;

    /**
     * @var integer Warning of the abnormal number of applications.
     */
    public $WarningErrorCount;

    /**
     * @var integer Total number of applications.
     */
    public $ApplicationCount;

    /**
     * @var integer Page number.
     */
    public $Page;

    /**
     * @var integer Page size.
     */
    public $PageSize;

    /**
     * @var integer Indicates the number of abnormal applications.
     */
    public $ErrorCount;

    /**
     * @var integer Warning of the number of applications.
     */
    public $WarningCount;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param array $ServiceMetricList List of application metrics.
     * @param integer $TotalCount Number of applications meeting the filtering conditions.
     * @param integer $WarningErrorCount Warning of the abnormal number of applications.
     * @param integer $ApplicationCount Total number of applications.
     * @param integer $Page Page number.
     * @param integer $PageSize Page size.
     * @param integer $ErrorCount Indicates the number of abnormal applications.
     * @param integer $WarningCount Warning of the number of applications.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("ServiceMetricList",$param) and $param["ServiceMetricList"] !== null) {
            $this->ServiceMetricList = [];
            foreach ($param["ServiceMetricList"] as $key => $value){
                $obj = new ApmServiceMetric();
                $obj->deserialize($value);
                array_push($this->ServiceMetricList, $obj);
            }
        }

        if (array_key_exists("TotalCount",$param) and $param["TotalCount"] !== null) {
            $this->TotalCount = $param["TotalCount"];
        }

        if (array_key_exists("WarningErrorCount",$param) and $param["WarningErrorCount"] !== null) {
            $this->WarningErrorCount = $param["WarningErrorCount"];
        }

        if (array_key_exists("ApplicationCount",$param) and $param["ApplicationCount"] !== null) {
            $this->ApplicationCount = $param["ApplicationCount"];
        }

        if (array_key_exists("Page",$param) and $param["Page"] !== null) {
            $this->Page = $param["Page"];
        }

        if (array_key_exists("PageSize",$param) and $param["PageSize"] !== null) {
            $this->PageSize = $param["PageSize"];
        }

        if (array_key_exists("ErrorCount",$param) and $param["ErrorCount"] !== null) {
            $this->ErrorCount = $param["ErrorCount"];
        }

        if (array_key_exists("WarningCount",$param) and $param["WarningCount"] !== null) {
            $this->WarningCount = $param["WarningCount"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
